var moment = require('moment');

moment.locale('zh-cn')

timeago = function(timestamp){
    return moment(timestamp).startOf('minute').fromNow();
}

module.exports = timeago
